#ifndef __MY_I2C__
#define __MY_I2C__
#include "driver/i2c.h"
#include "esp_log.h"
#include "esp_check.h"
#define I2C_MASTER_SCL_IO           GPIO_NUM_18      /*!< GPIO number used for I2C master clock */
#define I2C_MASTER_SDA_IO           GPIO_NUM_17      /*!< GPIO number used for I2C master data  */
#define I2C_MASTER_FREQ_HZ          400000                     /*!< I2C master clock frequency */
#define I2C_MASTER_TX_BUF_DISABLE   0                          /*!< I2C master doesn't need buffer */
#define I2C_MASTER_RX_BUF_DISABLE   0                          /*!< I2C master doesn't need buffer */
#define I2C_MASTER_TIMEOUT_MS       1000
#define I2C_MASTER_PORT             I2C_NUM_0

esp_err_t my_i2c_init(void);


#endif